<template>
  <div>
    <button @click="isShow = !isShow">点我显示/隐藏</button>
    <!--
      enter-active-class:入场动画
      leave-active-class:离场动画
    -->
    <transition-group
      appear
      name="animate__animated animate__bounce"
      enter-active-class="animate__swing"
      leave-active-class="animate__swing"
    >
      <h2 v-show="!isShow" key="1">Hello AnmiateCSS</h2>
      <h2 v-show="isShow" key="2">Hello AnmiateCSS2</h2>
    </transition-group>
  </div>
</template>

<script>
import 'animate.css'
export default {
  name: "AnimateCssTest",
  data(){
    return{
      isShow:true
    }
  }
}
</script>

<style scoped>

</style>